package com.mbc.rmt.dao;

import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;

import com.mbc.rmt.entities.AddCodeDetail;

public interface AddCodeDetailDAO {
	void create(AddCodeDetail entity)throws SQLException;
	void update(AddCodeDetail entity)throws SQLException;
	void delete(long key)throws SQLException;
	void deleteByAddCodeId(long addCodeId)throws SQLException;
	AddCodeDetail find(long key)throws SQLException;
	List<AddCodeDetail> findAll()throws SQLException;
	List<AddCodeDetail> findByAddCodeId(long addCodeId)throws SQLException;
	AddCodeDetail findLastByAddCodeId(long addCodeId)throws SQLException;
	//MBC Begin
	ArrayList<AddCodeDetail> getInfoList(long key)throws SQLException;
}
